<html>
<!-- =====================================================================

  File:      Generated file for Adventure Works Cycles Storefront Sample
  Summary:   Self-documentation for application
  Date:	     June 16, 2003

=====================================================================

  This file is part of the Microsoft SQL Server Code Samples.
  Copyright (C) 2003 Microsoft Corporation.  All rights reserved.

This source code is intended only as a supplement to Microsoft
Development Tools and/or on-line documentation.  See these other
materials for detailed information regarding Microsoft code samples.

THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
PARTICULAR PURPOSE.

======================================================= -->
<head>
  <link rel=stylesheet href=style.css>
</head>
<body>
<div class=SourcePanel style="font-size:12">
<pre style="background-color:white">
<span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">%@</span> <span style="color: #2040a0">Control</span>  <span style="color: #2040a0">Language=</span><span style="color: #444444">&quot;c#&quot;</span> <span style="color: #2040a0">Inherits=</span><span style="color: #444444">&quot;Microsoft.Samples.SqlServer.HeaderControl&quot;</span> <span style="color: #2040a0">CodeFile=</span><span style="color: #444444">&quot;_Header.ascx.cs&quot;</span> <span style="color: #2040a0">%</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
<span style="color: #008000">&lt;!-- =====================================================================

  File:      _header.ascx for Adventure Works Cycles Storefront Sample
  Summary:   Master page visual component which should appear at the top of most web pages.
			 Provides basic functionality navigation.
  Date:	     June 16, 2003

=====================================================================

  This file is part of the Microsoft SQL Server Code Samples.
  Copyright (C) Microsoft Corporation.  All rights reserved.

This source code is intended only as a supplement to Microsoft
Development Tools and/or on-line documentation.  See these other
materials for detailed information regarding Microsoft code samples.

THIS CODE AND INFORMATION ARE PROVIDED &quot;AS IS&quot; WITHOUT WARRANTY OF ANY
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
PARTICULAR PURPOSE.

======================================================= --&gt;</span>
<span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">%--

</span>    <span style="color: #2040a0">This</span> <span style="color: #2040a0">user</span> <span style="color: #2040a0">control</span> <span style="color: #2040a0">forms</span> <span style="color: #2040a0">the</span> <span style="color: #2040a0">header</span> <span style="color: #2040a0">for</span> <span style="color: #2040a0">each</span> <span style="color: #2040a0">page</span> <span style="color: #2040a0">in</span> <span style="color: #2040a0">the</span> <span style="color: #2040a0">Store.

--%</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>

<span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">table</span> <span style="color: #2040a0">cellspacing=</span><span style="color: #444444">&quot;0&quot;</span> <span style="color: #2040a0">cellpadding=</span><span style="color: #444444">&quot;0&quot;</span> <span style="color: #2040a0">width=</span><span style="color: #444444">&quot;100%&quot;</span> <span style="color: #2040a0">border=</span><span style="color: #444444">&quot;0&quot;</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
    <span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">tr</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
        <span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">td</span> <span style="color: #2040a0">colspan=</span><span style="color: #444444">&quot;2&quot;</span> <span style="color: #2040a0">background=</span><span style="color: #444444">&quot;images/grid_background.gif&quot;</span> <span style="color: #2040a0">nowrap</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
            <span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">table</span> <span style="color: #2040a0">cellspacing=</span><span style="color: #444444">&quot;0&quot;</span> <span style="color: #2040a0">cellpadding=</span><span style="color: #444444">&quot;0&quot;</span> <span style="color: #2040a0">width=</span><span style="color: #444444">&quot;100%&quot;</span> <span style="color: #2040a0">border=</span><span style="color: #444444">&quot;0&quot;</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
                <span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">tr</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
                    <span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">td</span> <span style="color: #2040a0">colspan=</span><span style="color: #444444">&quot;2&quot;</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
                        <span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">img</span> <span style="color: #2040a0">src=</span><span style="color: #444444">&quot;images/most_secretive_place.gif&quot;</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
                    <span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">/td</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
                    <span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">td</span> <span style="color: #2040a0">align=</span><span style="color: #444444">&quot;right&quot;</span> <span style="color: #2040a0">nowrap</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
                        <span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">table</span> <span style="color: #2040a0">cellpadding=</span><span style="color: #444444">&quot;0&quot;</span> <span style="color: #2040a0">cellspacing=</span><span style="color: #444444">&quot;0&quot;</span> <span style="color: #2040a0">border=</span><span style="color: #444444">&quot;0&quot;</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
                            <span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">tr</span> <span style="color: #2040a0">valign=</span><span style="color: #444444">&quot;top&quot;</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
                                <span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">td</span> <span style="color: #2040a0">align=</span><span style="color: #444444">&quot;center&quot;</span> <span style="color: #2040a0">width=</span><span style="color: #444444">&quot;65&quot;</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
                                    <span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">a</span> <span style="color: #2040a0">href=</span><span style="color: #444444">&quot;Login.aspx&quot;</span> <span style="color: #2040a0">class=</span><span style="color: #444444">&quot;SiteLinkBold&quot;</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span><span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">img</span> <span style="color: #2040a0">src=</span><span style="color: #444444">&quot;images/sign_in.gif&quot;</span> <span style="color: #2040a0">border=</span><span style="color: #444444">&quot;0&quot;</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
                                        Sign In<span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">/a</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
                                <span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">/td</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
                                <span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">td</span> <span style="color: #2040a0">align=</span><span style="color: #444444">&quot;center&quot;</span> <span style="color: #2040a0">width=</span><span style="color: #444444">&quot;75&quot;</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
                                    <span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">a</span> <span style="color: #2040a0">href=</span><span style="color: #444444">&quot;OrderList.aspx&quot;</span> <span style="color: #2040a0">class=</span><span style="color: #444444">&quot;SiteLinkBold&quot;</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span><span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">img</span> <span style="color: #2040a0">src=</span><span style="color: #444444">&quot;images/account.gif&quot;</span> <span style="color: #2040a0">border=</span><span style="color: #444444">&quot;0&quot;</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
                                        Account<span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">/a</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
                                <span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">/td</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
                                <span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">td</span> <span style="color: #2040a0">align=</span><span style="color: #444444">&quot;center&quot;</span> <span style="color: #2040a0">width=</span><span style="color: #444444">&quot;55&quot;</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
                                    <span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">a</span> <span style="color: #2040a0">href=</span><span style="color: #444444">&quot;ShoppingCart.aspx&quot;</span> <span style="color: #2040a0">class=</span><span style="color: #444444">&quot;SiteLinkBold&quot;</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span><span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">img</span> <span style="color: #2040a0">src=</span><span style="color: #444444">&quot;images/cart.gif&quot;</span> <span style="color: #2040a0">border=</span><span style="color: #444444">&quot;0&quot;</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
                                        Cart<span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">/a</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
                                <span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">/td</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
                                <span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">td</span> <span style="color: #2040a0">align=</span><span style="color: #444444">&quot;center&quot;</span> <span style="color: #2040a0">width=</span><span style="color: #444444">&quot;65&quot;</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
                                    <span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">a</span> <span style="color: #2040a0">href=</span><span style="color: #444444">&quot;InstantOrder.asmx&quot;</span> <span style="color: #2040a0">class=</span><span style="color: #444444">&quot;SiteLinkBold&quot;</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span><span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">img</span> <span style="color: #2040a0">src=</span><span style="color: #444444">&quot;images/services.gif&quot;</span> <span style="color: #2040a0">border=</span><span style="color: #444444">&quot;0&quot;</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
                                        Services<span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">/a</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
                                <span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">/td</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
                            <span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">tr</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
                        <span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">/table</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
                    <span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">/td</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
                    <span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">td</span> <span style="color: #2040a0">width=</span><span style="color: #444444">&quot;10&quot;</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
                        <span style="color: #ff0000">&amp;nbsp;</span>
                    <span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">/td</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
                <span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">/tr</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
            <span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">/table</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
        <span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">/td</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
    <span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">/tr</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
    <span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">tr</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
        <span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">td</span> <span style="color: #2040a0">colspan=</span><span style="color: #444444">&quot;2&quot;</span> <span style="color: #2040a0">nowrap</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
                <span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">table</span> <span style="color: #2040a0">cellspacing=</span><span style="color: #444444">&quot;0&quot;</span> <span style="color: #2040a0">cellpadding=</span><span style="color: #444444">&quot;0&quot;</span> <span style="color: #2040a0">width=</span><span style="color: #444444">&quot;100%&quot;</span> <span style="color: #2040a0">border=</span><span style="color: #444444">&quot;0&quot;</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
                    <span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">tr</span> <span style="color: #2040a0">bgcolor=</span><span style="color: #444444">&quot;#9D0000&quot;</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
                        <span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">td</span> <span style="color: #2040a0">background=</span><span style="color: #444444">&quot;images/modernliving_bkgrd.gif&quot;</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
                            <span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">img</span> <span style="color: #2040a0">align=</span><span style="color: #444444">&quot;left&quot;</span> <span style="color: #2040a0">src=</span><span style="color: #444444">&quot;images/modernliving.gif&quot;</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
                        <span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">/td</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
                        <span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">td</span> <span style="color: #2040a0">width=</span><span style="color: #444444">&quot;94&quot;</span> <span style="color: #2040a0">align=</span><span style="color: #444444">&quot;right&quot;</span> <span style="color: #2040a0">bgcolor=</span><span style="color: #444444">&quot;#9D0000&quot;</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
                            <span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">img</span> <span style="color: #2040a0">src=</span><span style="color: #444444">&quot;images/search.gif&quot;</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
                        <span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">/td</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
                        <span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">td</span> <span style="color: #2040a0">width=</span><span style="color: #444444">&quot;120&quot;</span> <span style="color: #2040a0">align=</span><span style="color: #444444">&quot;right&quot;</span> <span style="color: #2040a0">bgcolor=</span><span style="color: #444444">&quot;#9D0000&quot;</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
                            <span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">asp:textbox</span> <span style="color: #2040a0">ID=</span><span style="color: #444444">&quot;txtSearch&quot;</span> <span style="color: #2040a0">maxlength=</span><span style="color: #444444">&quot;30&quot;</span> <span style="color: #2040a0">runat=</span><span style="color: #444444">&quot;server&quot;</span><span style="color: #2040a0">/</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
                        <span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">/td</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
                        <span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">td</span> <span style="color: #2040a0">align=</span><span style="color: #444444">&quot;left&quot;</span> <span style="color: #2040a0">bgcolor=</span><span style="color: #444444">&quot;#9D0000&quot;</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
                           <span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">asp:imagebutton</span> <span style="color: #2040a0">id=</span><span style="color: #444444">&quot;SearchButton&quot;</span> <span style="color: #2040a0">imageurl=</span><span style="color: #444444">&quot;images/arrowbutton.gif&quot;</span> <span style="color: #2040a0">runat=</span><span style="color: #444444">&quot;server&quot;</span> <span style="color: #2040a0">commandname=</span><span style="color: #444444">&quot;Search&quot;</span> <span style="color: #2040a0">OnCommand=</span><span style="color: #444444">&quot;CommandBtn_Click&quot;</span><span style="color: #2040a0">/</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span> 
                        <span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">/td</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
                    <span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">/tr</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
                <span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">/table</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
        <span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">/td</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
    <span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">/tr</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
<span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">/table</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>

</pre>
